package com.qianyu.core.entity.dto;

import com.qianyu.core.entity.base.BaseIdDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "WalletAccountDto")
public class WalletAccountDto {

    @Data
    @ApiModel(value = "WalletAccountDto&WalletAccountSaveDto")
    public static class WalletAccountSaveDto{
        /**
         * 收款账户
         */
        @NotBlank(message = "[收款账户]不能为空")
        @Size(max = 255, message = "编码长度不能超过255")
        @ApiModelProperty("收款账户")
        private String walletAccount;
        /**
         * 账户类型
         */
        @NotBlank(message = "[账户类型]不能为空")
        @Size(max = 255, message = "编码长度不能超过255")
        @ApiModelProperty("账户类型")
        private String accountType;
    }


    @Data
    @ApiModel(value = "WalletAccountDto&WalletAccountEditDto")
    public static class WalletAccountEditDto extends BaseIdDto {
        /**
         * 收款账户
         */
        @Size(max = 255, message = "编码长度不能超过255")
        @ApiModelProperty("收款账户")
        private String walletAccount;
        /**
         * 账户类型
         */
        @Size(max = 255, message = "编码长度不能超过255")
        @ApiModelProperty("账户类型")
        private String accountType;
    }
}
